<template>
  <el-table
      :data="tableData"
      style="width: 100%">
    <template v-for="(item,index) in list">
      <el-table-column
          :prop="item.prop"
          :label="item.label"
          :key="index"
      >
      </el-table-column>
    </template>
  </el-table>
</template>

<script>
export default {
  name: "watch",
  data(){
    return{
      //标题数据
      tableData: [
        {
          mingcheng: '10086',
          leixing: '国家干部',
          ma: '10010',
          jiangpin: '太空飞船',
          shijian:'0218',
        },
      ],
      //表头数据
      list:[
        {prop:'mingcheng',label:'用户名'},
        {prop:'leixing',label:'用户类型'},
        {prop:'ma',label:'中奖码'},
        {prop:'jiangpin',label:'奖品名称'},
        {prop:'shijian',label:'中奖时间'},
      ]
    }
  }

}
</script>

<style scoped>

</style>
